home *** CD-ROM | disk | FTP | other *** search
- /*
- This is the header file of body.cpp that contains all definetions,
- variables declaration and pre-set data.
- */
-
- # define ICONW 22
- # define ICONH 21
- # define HANDW 8
- # define HANDH 3
- # define LEGW 11
- # define LEGH 12
- # define I -1
- # define ENEMY 16
- # define LEFT 20
- # define RIGHT (SCRNW-20-ICONW)
- # define BODYINC 3
-
- short body [1][ICONW][ICONH] = {
- {
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,99,99,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,99,99,99,-1,-1,-1,-1, 1, 1, 1, 1, 1,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,99,99,99, 1, 1, 1, 1, 1, 1, 1, 1, 1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,99,99, 1, 1, 1, 1, 1,14,14,14, 1,-1,
-
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,99, 1,14,14,14,14,14, 1, 1,
- -1, 4,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,15,14,14,14, 1, 1, 1,
- 4,20, 4, 4,-1,15,15,15,15,15, 0, 0,15,15,15,15,15,14, 1, 1, 1,
- 4,20,15,20,15,15,15,15,15,15,15,15,15,15,15,15,28,15, 1, 1, 1,
- 4, 4, 4,15,15,15,15,15,15,15,15,15,15,15,15,28,30,15,15, 1, 1,
-
- -1,-1,-1,15,15,15,15,15,15,15,15,15,15,28,28,28,30,15,24,24,-1,
- -1,-1,-1,15,15,22, 0,15,15,15,15,15,-1,-1,28,30,15,15,24,24,-1,
- -1,-1,-1,-1,22,15,15,15,15,15,-1,-1,-1,-1,-1,15,15, 0,24, 0,24,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,24, 0,24,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,24, 0,24,-1,
-
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,24,24,24,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,-1,24,24,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,26,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,20,26,-1,15,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,26,15,-1,-1,-1,
-
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,-1,
- },
- };
-
- short hand [3][10][10]= {
- {
- -1,26,26,26,26,26,26,26,
-
- 30,30,30,30,30,30,30,30,
- 30,30,30,-1,-1,-1,-1,-1,
- },
-
-
- };
-
- short leg [4][LEGW][LEGH]= {
- {
- -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
- -1,15,-1,-1,-1,15,15,15,15,-1,-1,-1,
- 15,15,15,-1,15,15,15,15,15,-1,-1,-1,
- 15,15,15,15,15,15,15,-1,-1,-1,-1,-1,
- -1,-1,15,15,15,15,-1,-1,-1,-1,-1,-1,
-
- -1,-1,15,15,15,15,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,15,15,15,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,15,-1,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- },
- {
- -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
- -1,-1,-1,-1,-1,15,15,15,15,-1,-1,-1,
- -1,-1,-1,-1,-1,15,15,15,-1,-1,-1,-1,
- 15,15,-1,-1,15,15,15,15,-1,-1,-1,-1,
-
- 15,15,15,15,15,15,15,-1,-1,-1,-1,-1,
- 15,15,15,15,15,15,15,-1,-1,-1,-1,-1,
- -1,-1,15,15,15,15,15,-1,-1,-1,-1,-1,
- -1,-1,-1,15,15,15,15,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,15,-1,-1,-1,-1,-1,-1,
-
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- },
- {
- -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,15,15,-1,15,-1,
- -1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,
-
- -1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,
- -1,-1,-1,-1,-1,-1,-1,-1,15,15,15,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,15,15,15,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,15,15,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,15,15,15,-1,-1,
-
- -1,-1,-1,-1,-1,-1,-1,15,15,-1,-1,-1,
- },
- {
- -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,15,15,15,-1,15,15,
- -1,-1,-1,-1,-1,-1,15,15,15,15,15,15,
- -1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,
- -1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,
-
- -1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- },
- };
-
-
- int mytankangle= 0;
- int temp [32][3];
- int handinc= 1, leginc= 1;
- int spritx= 100, sprity= SCRNH/2-20, handx1= 0, handx2= 5, leg1= 0, leg2= 3;
- int direction = 0;